package com.bill99.unittest;

import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/*
   File: 
   Description:
   Copyright 2004-2010 99Bill Corporation. All rights reserved.
    Date            Author          Changes
   2012-8-15		    leofung	   		leofung
*/

/**
 * @author leofung
 * 有事务支持,默认测试结束事务回滚
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:test/context/applicationContext.xml" })
public class BaseSpringJunitTestsWithOutTx extends AbstractJUnit4SpringContextTests {

	public Object getBean(String name) {
		return applicationContext.getBean(name);
	}

}
